Returns the file extension, including the period, from a file path. For example, '.txt' is returned from the path to a text file.
Syntax
FileExtension("FilePath")
Arguments
| Argument | Description |
|---|---|
| FilePath | Full path to the file. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory. |
Return value
| Value | Description |
|---|---|
| Value | File extension from the path, including the period. |
Example
FileExtension("C:\\Testing\\Output.txt")